import {createBrowserRouter,Navigate} from 'react-router-dom'

import List from '../component/List'
import Searchs from '../component/Searchs'

const router=createBrowserRouter([
  {
    path:'/',
    element:<Navigate to='/list'/>
  },
  {
    path:'/list',
    element:<List/>
  },
  {
    path:'/searchs',
    element:<Searchs/>
  }
])

export default router